<form action="" method="post" > 
<table>
    <tr>
        <th>&nbsp;</th>
        <th><?php echo $this->translate('author'); ?></th>
        <th><?php echo $this->translate('title'); ?></th>
        <th><?php echo $this->translate('content'); ?></th>
        <th><?php echo $this->translate('category'); ?></th>
        <th><?php echo $this->translate('status'); ?></th>
        <th><?php echo $this->translate('created_at'); ?></th>
        <th><?php echo $this->translate('edit'); ?></th>
    </tr>
    
    <?php foreach($this->posts as $post):?>
    <tr>
        <td><input  value="<?php echo $post['id']; ?>" name="group_action[selected_items][]" type="checkbox" /></td>
        <td><?php echo $post['Author']['first_name']; ?> <?php echo $post['Author']['last_name']; ?></td>
        <td><?php echo $post['title']; ?></td>
        <td><?php echo $post['content']; ?></td>
        <td><?php echo $post['category_id']; ?></td>
        <td><?php echo $post['status']; ?></td>
        <td><?php echo $post['created_at']; ?></td>
        <td>
            <a href="<?php
            echo $this->url(
                array('module' => 'blog', 'controller'=>'post', 'action'=>'edit', 'id'=>$post['id']),
                'default', true)
                ?>"><?php echo  $this->translate('edit'); ?></a>
        </td>
    </tr>
    <?php endforeach;?> 

    <tr>
        <td colspan="11">
            └ <?php echo  $this->translate('with selected'); ?>
            <input type="submit" name="group_action[submit_defined_action][delete]" value="<?php echo  $this->translate('delete'); ?>" />
            <select name="group_action[action]">
                <option value=""><?php echo  $this->translate('more actions'); ?></option>
                <option value="delete"><?php echo  $this->translate('delete'); ?></option>
            </select>
            <input type="submit" name="group_action[submit_selected_action]" value="<?php echo  $this->translate('go'); ?>" />
        </td>
    </tr>    
</table>
</form> 

<?php echo $this->paginationControl($this->posts); ?>
